This document aims to be a comprehensive reference to players for how the generation 4 trainer AI behaves in battle. Each NPC trainer is assigned a set of flags, each of which determines the behavior of the AI. When considering what move to use on any given turn, the AI will initialize the "score" of all of its moves to 100. Then, it will apply score modifiers to each move according to the behavior flags given to it and choose the move with the highest score. If two moves are given the same score, then the chosen move will be selected from among them at-random.
This is a living document; the contents herein are subject to change for clarity or improved accuracy.
Information herein is sourced from the trainer AI scripts in pokeplatinum.
In general:
- Unless otherwise specified, none of these scores are cumulative within the scope of their respective flag. That is, if a move says that it is -10 for two different conditions within the Basic flag, the move is scored at -10,